import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '../public/css/index.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// import 'element-plus/theme-chalk/dark/css-vars.css'

// import 'element-plus/theme-chalk/src/dark/css-vars.css'

import zhCn from 'element-plus/lib/locale/lang/zh-cn'

import '@ztree/ztree_v3/js/jquery-1.4.4.min.js'
import '@ztree/ztree_v3/js/jquery.ztree.core.min.js'
import '@ztree/ztree_v3/js/jquery.ztree.excheck.min.js'
import '@ztree/ztree_v3/js/jquery.ztree.exedit.min.js'
// import '@ztree/ztree_v3/css/metroStyle/metroStyle.css'
import '@ztree/ztree_v3/css/zTreeStyle/zTreeStyle.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus,{
    locale:zhCn
})

app.use(store).use(router).mount('#app')


